package com.meals.system.service;

import com.meals.system.api.user.vo.WhitesMealUserAddressVO;
import com.meals.system.entity.SystemUserAddress;

import java.util.List;

/**
 * Description:
 * Parm:
 * return:
 * Author: Chen
 * Date: 2021/12/11
 */
public interface WhitesMealUserAddressService {

    /**
     * 获取收货地址
     *
     * @param userId
     * @return
     */
    List<WhitesMealUserAddressVO> getLoginSystemUserAddress(Long userId);

    /**
     * 添加收货地址
     *
     * @param systemUserAddress
     * @return
     */
    Boolean insertUserAddress(SystemUserAddress systemUserAddress);


    /**
     * 根据id获取收货地址
     *
     * @param addressId
     * @return
     */

    SystemUserAddress getSystemUserAddressById(Long addressId);

    /**
     * 修改收货地址
     *
     * @param updateSystemUserAddress
     * @return
     */
    Boolean updateSystemUserAddress(SystemUserAddress updateSystemUserAddress);

    /**
     * 获取默认地址
     *
     * @param userId
     * @return
     */
    SystemUserAddress getDefaultAddressByUserId(Long userId);


    /**
     * 删除地址
     *
     * @param addressId
     * @return
     */
    Boolean deleteById(Long addressId);
}
